<div [@flyIn]="'active'">

  <div class="wrapper-sm">
    <div class="panel panel-default m-t-n-xs m-b-n-xs" style="border-radius:5px;">

      <div class="panel panel-default" style="margin-bottom:-5px;border-radius:5px">
        <div class="panel-body" style="font-size: 10px;padding:5px 20px; " >

          <div class="row">
            <div class="col-xs-3 m-t-xs m-t-sm">
              <span>{{'devfiles.head.LEFT_TITLE1'|translate}}</span>
              <i class="fa fa-angle-right"></i>
              <span>{{'devfiles.head.LEFT_TITLE2'|translate}} </span>
              <i class="fa fa-angle-right"></i>
              <span>{{'devfiles.head.LEFT_TITLE3'|translate}}</span>
            </div>
            <div class="col-xs-9" >
              <form class="form-inline row pull-right">
                <app-select (search)="oo=$event;getData()"></app-select>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="wrapper-sm" style="font-size:12px">
    <div class="panel panel-default" style="border-radius:5px">
      <div class="panel-body" >
        <table  class="table table-hover table-striped m-b-none default footable " style="font-size: 12px;">
          <thead>
          <tr>
            <th  style="width:20%">{{'devfiles.table_header.DEVNO'|translate}}</th>
            <th  style="width:20%">{{'devfiles.table_header.PRONAME'|translate}}</th>
            <th  style="width:20%">{{'devfiles.table_header.DEVNAME'|translate}}</th>
            <th  style="width:15%">{{'devfiles.table_header.MODEL'|translate}}</th>
            <th  style="width:10%">{{'devfiles.table_header.BRAND'|translate}}</th>
            <th  style="width:15%">{{'devfiles.table_header.STATUS'|translate}}</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let item of data">
            <td><a style="color: blue" [routerLink]="['deviceinfo',item.id.replace('/','|')]">{{item.mac}}</a></td>
            <td>{{item.product_name}}</td>
            <td>{{item.name}}</td>
            <td>{{item.model}}</td>
            <td>{{item.brand}}</td>
            <td *ngIf="item.online=='在线'"><span  class="label bg-success inline m-t-xs">{{item.online}}</span></td>
            <td *ngIf="item.online=='离线'"><span class="label bg-danger inline m-t-xs">{{item.online}}</span></td>

          </tr>
          </tbody>
        </table>


        <app-pagination [pageModel]="pageModel" (pageChanged)="page=$event;getData()"></app-pagination>

      </div>
    </div>
  </div>
</div>
